package com.example.yk.net

import com.example.yk.entity.*
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

interface ApiServer {
    @POST("gateway.do")
    @MallApiService("mallGroupIndexList")
    suspend fun group():GroupEntityResult

    @POST("gateway.do")
    @MallApiService("cmallAdInfo")
    suspend fun banner(@Body body: RequestBody):BannerEntityResult
    @POST("gateway.do")
    @MallApiService("cMallGroupList")
    suspend fun goods(@Body body: RequestBody):GoodsEntityResult
    @POST("gateway.do")
    @MallApiService("mallGoodsInfoInfo")
    suspend fun detail(@Body body: RequestBody):DetailEntityResult
    @POST("http://10.161.9.80:7012/goods/selectCar")
    suspend fun addCar()
    @POST("gateway.do")
@MallApiService("goodsHotSearchList")
    suspend fun searchtj():SearchEntityResult
    @POST("gateway.do")
    @MallApiService("orderGoodsSubmitSuccess")
    suspend fun submit(@Body body: RequestBody):SubmitEntityResult

    @POST("gateway.do")
    @MallApiService("mallGoodsGroupPageCondition")
    suspend fun brand(@Body body: RequestBody):BrandEntityResult

    @POST("gateway.do")
    @MallApiService("mallGoodsGroupDetailPageList")
    suspend fun condition(@Body body: RequestBody):ConditionEntityResult
}
annotation class MallApiService(val service:String)